<template>
  <div class="cart">
    <div class="good_list">
      <van-checkbox v-model="checked" shape="square"></van-checkbox>
      <img src class="good_img" alt />
      <div class="desc">
        <div class="good_title">标题标题标题标题标题</div>
        <div class="good_desc">详细</div>
        <div class="price">
          <span class="price_tag">￥</span>999
        </div>
      </div>
      <div class="add">
        <!-- <img src="@/assets/icon/jian.png" class="icon" alt /> -->
        <van-icon name="plus" />
        <div class="number">1</div>
        <van-icon name="minus" />
        <!-- <img src="@/assets/icon/jia.png" class="icon" alt /> -->
      </div>
    </div>

    <div class="bottom">
      <van-checkbox v-model="checked" shape="square">全选</van-checkbox>
      <div class="all">合计:￥899</div>
      <div class="btn">去支付</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      checked: true
    };
  }
};
</script>

<style lang="less" scoped>
.bottom{
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 1rem;
  height: 1rem;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  padding-left:   .2rem;
  .all{
    font-size: .3rem;
    transform: translateY(-1px);
    margin-left: auto;
    margin-right: 0rem;
  }
  .btn{
    margin-left: .2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .4rem;
    background-color: #3963bc;
    color: #fff;
    &:hover{
      background-color: #3157aa;
    }
  }
}
.good_list {
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-bottom: 1px solid #eee;
  .good_img {
    height: 1.6rem;
    width: 1.6rem;
    background-color: #eee;
    margin-left: 0.2rem;
  }
  .desc {
    margin-left: 0.2rem;
    height: 1.6rem;
    font-size: 0.28rem;
    width: 3.2rem;
  }
  .good_title {
    margin-bottom: 0.1rem;
  }
  .good_desc {
    background-color: #eee;
    font-size: 0.24rem;
    padding: 0.04rem 0.12rem;
    display: inline-block;
  }
  .price {
    padding: 0;
    margin-top: 0.2rem;
  }
  .add {
    margin-left: auto;

    height: 0.5rem;
    // border:1px solid #3963bc;
    // background-color: blue;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .icon {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .number {
      margin: 0 0.16rem;
      color: #3963bc;
    }
  }
}
</style>